# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=orbited
pkgver=0.7.10
pkgrel=11
pkgdesc="A browser(javascript)->tcp bridge; Comet is used to emulate TCP connections in the browser; Allows you to connect a web browser directly to an IRC or XMPP server, for instance."
arch=('any')
url='https://pypi.org/project/orbited/#files'
license=('MIT')
depends=('python2' 'python-simplejson' 'morbid' 'stomper' 'python2-twistedx'
         'python2-demjson')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('6783bbe687a5191f773e723f068651a6cd55baa39a825dfa16e27b3c51a39f32dcef04f61b2b58756514ee99e39c1cbe450ae24e5d3835e95ace9b59403b9376')

prepare() {
  cd "$pkgname-$pkgver"

  sed -i 's/python2\.5/python2/' start.py
}

build() {
  cd "$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr --skip-build
}

